package com.mcy.threed.jpct.movement;

public class Movement {
	/**
	 * 世界旋转X
	 */
	public float worldRotationX;
	/**
	 * 相机旋转Y
	 */
	public float cameraRotationY;
	/**
	 * 相机位移（x,y,z）
	 */
	public float cameraMovementX;
	public float cameraMovementY;
	public float cameraMovementZ;

	public boolean hasMovement() {
		return worldRotationX != 0f || cameraRotationY != 0f
				|| cameraMovementX != 0f || cameraMovementY != 0f
				|| cameraMovementZ != 0f;
	}

	@Override
	public String toString() {
		return "Movement (hasMovement=<"+hasMovement()+">, worldRotationX=" + worldRotationX
				+ ", cameraRotationY=" + cameraRotationY + ", cameraMovementX="
				+ cameraMovementX + ", cameraMovementY=" + cameraMovementY
				+ ", cameraMovementZ=" + cameraMovementZ + ")";
	}

}
